﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Shared/Window.master" AutoEventWireup="true" CodeFile="PAccPayableReceipt.aspx.cs" Inherits="View_Inventory_AccPayableReceipt" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" Runat="Server">
Phiếu ghi nợ
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<script type="text/javascript" src="../../Scripts/ResizeWindow.js"></script>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <table>
            <tr>
                <td width="125px">
                    <label>Mã giao dịch</label>
                </td>
                <td>
                    <telerik:RadComboBox runat="server" ID="cbTranCode" Width="100"/>
                </td>
                <td>
                    <telerik:RadTextBox ID="txtTranCode" Width="200"  Runat="server"></telerik:RadTextBox>
                </td>
                <td>
                    <label>Ngày hạch toán</label>
                </td>
                <td width="200">
                    <telerik:RadDatePicker ID="dpGLDate" runat="server">
                        <ClientEvents OnPopupOpening="AdjustRadWidow" OnPopupClosing="AdjustRadWidow" OnDateSelected="AdjustRadWidow"/>    
                    </telerik:RadDatePicker>
                </td>
            </tr>
            <tr>
                <td>
                    <label>Mã NCC</label>
                </td>
                <td>
                    <telerik:RadTextBox ID="txtSupplierCode" Width="100"  Runat="server"></telerik:RadTextBox>
                </td>
                <td>
                    <telerik:RadTextBox ID="txtSupplierName" Width="200"  Runat="server"></telerik:RadTextBox>
                </td>
                <td>
                    <label>Ngày lập chứng từ</label>
                </td>
                <td>
                    <telerik:RadDatePicker ID="dpVoucherDate" runat="server">
                        <ClientEvents OnPopupOpening="AdjustRadWidow" OnPopupClosing="AdjustRadWidow" OnDateSelected="AdjustRadWidow"/>    
                    </telerik:RadDatePicker>
                </td>
            </tr>
            <tr>
                <td>
                    <label>Địa chỉ</label>
                </td>
                <td colspan="2" width="350px">
                    <telerik:RadTextBox ID="txtAddress" Width="320"  Runat="server"></telerik:RadTextBox>
                </td>
                <td>
                    <label>Quyển số</label>
                </td>
                <td>
                    <telerik:RadTextBox ID="txtBookNo" Width="175" Runat="server"></telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <label>Mã số thuế</label>
                </td>
                <td colspan="2">
                    <telerik:RadTextBox ID="txtTaxCode" Width="320"  Runat="server"></telerik:RadTextBox>
                </td>
                <td>
                    <label>Số chứng từ</label>
                </td>
                <td>
                    <telerik:RadTextBox ID="txtVoucherNo" Width="175" Runat="server"></telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <label>Diễn giải</label>
                </td>
                <td colspan="2">
                    <telerik:RadTextBox ID="txtDescription" Width="320" Runat="server"></telerik:RadTextBox>
                </td>
                <td>
                    <label>Tỷ giá </label>
                </td>
                <td>
                    <telerik:RadComboBox runat="server" ID="cbExchangeRate" Width="50"/>&nbsp;<telerik:RadTextBox ID="txtExchangeRate" Runat="server"></telerik:RadTextBox>  
                </td>
            </tr>
            <tr>
                <td>
                    <label>Tài khoản có</label>
                </td>
                <td colspan="2">
                    <telerik:RadTextBox ID="txtCreditAcc" Width="100" Runat="server"></telerik:RadTextBox>
                    &nbsp;
                    <telerik:RadButton ID="bAddCA" Width="25" Text="+" runat="server"></telerik:RadButton>
                </td>
                <td>
                    <label>Số Serial</label>
                </td>
                <td>
                    <telerik:RadTextBox ID="txtSerialNo" Width="175"  Runat="server"></telerik:RadTextBox>
                </td>
            </tr>
        </table>
        
        <telerik:RadGrid runat="server" ID="RadGrid2"  AllowPaging="True" 
            AllowSorting="True" AllowFilteringByColumn="True" PageSize="5" 
            AutoGenerateColumns="False">
            <MasterTableView DataKeyNames="ProductID" ClientDataKeyNames="ProductID">
                <PagerStyle Mode="NumericPages" />
                <Columns>
                    <telerik:GridBoundColumn DataField="ProductID" HeaderText="ProductID"
                        DataType="System.Int32" >
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName"
                        DataType="System.String">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="UnitPrice" HeaderText="UnitPrice"
                        DataType="System.Double" DataFormatString="{0:C}">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ReorderLevel" HeaderText="ReorderLevel"
                        DataType="System.Int32">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Discontinued" HeaderText="Discontinued"
                        DataType="System.Double">
                    </telerik:GridBoundColumn>
                </Columns>
                <PagerStyle Mode="NumericPages" />
            </MasterTableView>
        </telerik:RadGrid>
        <br />
        <div class="alignright">
            <label>Tiền hàng</label>
            <telerik:RadTextBox ID="RadTextBox1" Width="300"  Runat="server"></telerik:RadTextBox>
        </div>
        <br />
        <p class="buttoncenter">
            <telerik:RadButton ID="bSave" runat="server" Text="Lưu" Width="100px" ></telerik:RadButton>
            <telerik:RadButton ID="bPrint" runat="server" Text="In phiếu" Width="100px" ></telerik:RadButton>
            <telerik:RadButton ID="pClose" runat="server" Text="Hủy bỏ" Width="100px" ></telerik:RadButton>
        </p> 
    </form>
</asp:Content>

